package zwp.example.demo1;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Random;

/**
 * @Author zwp14
 * @create 2024/6/27 16:57
 * @description 随机数
 */
@SpringBootTest
public class Demo9Random {

    @Test
    public void test1(){
        int i = new Random().nextInt(1, 11);
        System.out.println(i);
    }
}
